﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.PageEx
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DataBinds();
        }
    }
    private void DataBinds()
    {
        ////////////////////首页显示简介直接静态化/////
        if (litShowInfo.Visible)
        {
            Model.DbCompInfo dbCompInfo = DalEx.DbCompInfoEx.GetModel("Introduction");
            if (dbCompInfo != null)
            {
                litShowInfo.Text = HttpUtility.HtmlDecode(dbCompInfo.CNotes);
            }
        }
        //litShowInfo.Text = "<p> &nbsp; &nbsp; &nbsp; &nbsp;龙岗区机关幼儿园创建于1995年，是龙岗区政府主办的全日制公办幼儿园，区财政全额拨款事业单位，隶属龙岗区教育局，广东省一级幼儿园。<br /> &nbsp; &nbsp; &nbsp; &nbsp;幼儿园坐落于深圳市龙岗区中心城龙福一村内，占地面积4663平方米，绿化面积1808平方米，绿化率达64%。园内树木参天，绿草如茵，四季鲜花绽放，是儿童生活的绿色家园。</p>";
        /////////////////////Edit end////////////////////
        DataSet ds = DalEx.DbArticlesEx.Select(string.Empty, 4);
        rptNewsList.DataSource = ds;
        rptNewsList.DataBind();

        dtab = Dal.GGFalshDal.Select("GGClassName='' order by GGOrderby asc,GGid desc").Tables[0];
    }
    public static DataTable dtab = new DataTable();
}
